<?php


namespace app\admin\model;


class role extends baseModel
{
    public function rolepermission(){
        return $this->belongsToMany('permission','rolepermission','rid','pid');
    }
}